<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改广告主主体资质')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-subject-edit" th:object="${subject}">
            <input id="qualificationId" name="qualificationId" th:field="*{qualificationId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告主id：</label>
				<div class="col-sm-8">
					<input id="advertiserId" name="advertiserId" th:field="*{advertiserId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">公司名称：</label>
				<div class="col-sm-8">
					<input id="companyName" name="companyName" th:field="*{companyName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">对公验证类型：</label>
				<div class="col-sm-8">
					<input id="companyType" name="companyType" th:field="*{companyType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">公司类型，1企业，2个人：</label>
				<div class="col-sm-8">
					<input id="checkType" name="checkType" th:field="*{checkType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">资质类型：</label>
				<div class="col-sm-8">
					<input id="qualificationType" name="qualificationType" th:field="*{qualificationType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">资质编号：</label>
				<div class="col-sm-8">
					<input id="qualificationCode" name="qualificationCode" th:field="*{qualificationCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">注册国家：</label>
				<div class="col-sm-8">
					<input id="registeredNationName" name="registeredNationName" th:field="*{registeredNationName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">注册省份：</label>
				<div class="col-sm-8">
					<input id="registeredProvinceName" name="registeredProvinceName" th:field="*{registeredProvinceName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">注册城市：</label>
				<div class="col-sm-8">
					<input id="registeredCityName" name="registeredCityName" th:field="*{registeredCityName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否有有效日期：</label>
				<div class="col-sm-8">
					<input id="hasEffectiveDate" name="hasEffectiveDate" th:field="*{hasEffectiveDate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">法人：</label>
				<div class="col-sm-8">
					<input id="proprietorName" name="proprietorName" th:field="*{proprietorName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">详细地址：</label>
				<div class="col-sm-8">
					<input id="address" name="address" th:field="*{address}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">状态：</label>
				<div class="col-sm-8">
					<input id="status" name="status" th:field="*{status}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">拒绝理由：</label>
				<div class="col-sm-8">
					<input id="rejectReason" name="rejectReason" th:field="*{rejectReason}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">资质图片附件id：</label>
				<div class="col-sm-8">
					<input id="attachmentId" name="attachmentId" th:field="*{attachmentId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">资质图片地址：</label>
				<div class="col-sm-8">
					<input id="pictureUrl" name="pictureUrl" th:field="*{pictureUrl}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "dsp/subject";
		$("#form-subject-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-subject-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
